package com.cesgroup.zw.spring.boot.library.echarts.funnel.simple;

import com.cesgroup.zw.spring.boot.echarts.build.EChartsOption;
import com.cesgroup.zw.spring.boot.echarts.component.Legend;
import com.cesgroup.zw.spring.boot.echarts.component.Title;
import com.cesgroup.zw.spring.boot.echarts.component.Tooltip;
import com.cesgroup.zw.spring.boot.echarts.enums.Align;

/**
 * <p>简单漏斗图</p>
 * @author ytj
 * @date 2019/7/2 11:02
 */
@SuppressWarnings("serial")
public class SimpleFunnelOption extends EChartsOption {

    public SimpleFunnelOption(SimpleFunnelParam simpleFunnelParam){
        this.setTitle(new Title(){{
            this.setText(simpleFunnelParam.getName());
        }});
        this.setTooltip(new Tooltip());
        this.setLegend(new Legend(){{
            this.setLeft(Align.center);
        }});
    }
}
